﻿<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">User</h4>
            </div>

            <div class="modal-body">
                <!-- The form is placed inside the body of modal -->
                <form id="CheckValid" method="post" class="form-horizontal">
                    <input type="hidden" id="ID" name="ID" />
                    <div class="form-group">
                        <label class="col-md-3 control-label">Tên người dùng</label>
                        <div class="col-md-8">
                            <input type="text" id="UserName" class="form-control" name="UserName" data-bv-notempty="true"
                                data-bv-notempty-message="Mã số không để trống" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">Họ tên</label>
                        <div class="col-md-8">
                            <input type="text" id="FullName" class="form-control" name="FullName" />
                        </div>
                    </div>
                   <div class="form-group">
                        <label class="col-md-3 control-label">Kích hoạt </label>
                        <div class="col-md-8">
                            <div class="checkbox">
                                <input type="checkbox" id="Active" name="Active" class="checkbox" />
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">Ảnh đại diện </label>
                        <div class="col-md-8">
                            <input type="text" id="Avartar" class="form-control" name="Avartar"  />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">Email </label>
                        <div class="col-md-8">
                            <input type="text" id="Email" class="form-control" name="Email"  />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">Password </label>
                        <div class="col-md-8">
                            <input type="text" id="Password" class="form-control" name="Password"  />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">Điện thoại </label>
                        <div class="col-md-8">
                            <input type="text" id="Phone" class="form-control" name="Phone" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">Nhóm người dùng</label>
                        <div class="col-md-8">
                            <select id="GroupID" name="GroupID" class="form-control">
                                <option value="0">--Nhóm 1--</option>
                                <option value="2">--Nhóm 2--</option>
                                <option value="3">--Nhóm 3--</option>
                                <option value="4">---Nhóm 4--</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">Công ty</label>
                        <div class="col-md-8">
                            <select id="CompanyID" name="CompanyID" class="form-control">
                                <option value="0">--Hãy chọn công ty --</option>
                                @foreach (var item in ViewData["Company"] as IEnumerable<Data.Models.Company>)
                                { 
                                    <option value="@item.ID">@item.DisplayName</option>
                                }
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-md-8 col-md-offset-3">
                           <button type="submit" class="btn btn-default" style="width:100px;">Lưu</button>
                           <button type="button" class="btn btn-default" style="width:100px;" data-dismiss="modal" aria-hidden="true">Hủy</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
